<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap jj">
  <div class="nav">
    <ul class="cc">
      <li class="current"><a href="{:U('link/index')}">友情链接</a></li>
      <li ><a href="{:U('link/add')}" >添加链接</a></li>
    </ul>
  </div>
  <div class="common-form">
    <form method="post" class="J_ajaxForm" action="{:U('Link/listorders')}">
      <div class="table_list">
	    <table width="100%">
	        <thead>
	          <tr>
	           	<td width="50">排序</td>
	            <td>ID</td>
	            <td>链接名称</td>
	            <td>链接地址</td>
	            <td width="120">操作</td>
	          </tr>
	        </thead>
	        <tbody>
	        	<foreach name="links" item="vo">
		        	<tr>
			        	<td><input name='listorders[{$vo.link_id}]' class="input mr5"  type='text' size='3' value='{$vo.listorder}'></td>
			            <td>{$vo.link_id}</td>
			            <td>{$vo.link_name}</td>
			            <td><a href="{$vo.link_url}" target="_blank">{$vo.link_url}</a></td>
			            <td>
			            	<a href="{:U('link/edit',array('id'=>$vo['link_id']))}" >修改</a>|
				            <a href="{:U('link/delete',array('id'=>$vo['link_id']))}" class="J_ajax_del" >删除</a>
				        </td>
		          	</tr>
	          	</foreach>
			</tbody>
	      </table>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">排序</button>
      </div>
    </div>
  </div>
    </form>
  </div>
</div>
<script src="__ROOT__/statics/js/common.js?{$js_debug}"></script>
</body>
</html>